//:  v.book.read.tip.visitor.BeeAndFlowers2.java
package v.book.read.tip.visitor;

interface MyVisitor {
    void read(EnglishBook book);
    void read(ChinsesBook book);
}

//The Flower hierarchy cannot be changed:
interface Book {  
    void read(MyVisitor v);
}

class EnglishBook implements Book {

    public void read(MyVisitor v) { v.read(this); }
    
}

class ChinsesBook implements Book {
    public void read(MyVisitor v) { v.read(this); }
}


/**
 *
 * @author 小败
 */
public class BeeAndFlowers2 {

}
